package com.depay.mapper;

import java.math.BigInteger;
import java.util.List;

import com.depay.mapper.model.DiamondTransaction;
import com.depay.mapper.model.GoldAccounting;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author xieyueshu 2019/1/31
 */
@Mapper
public interface GoldAccountingMapper {
	
	GoldAccounting load(@Param("hash") String hash);

    Integer insert(@Param("accounting") GoldAccounting accounting);

    Integer update(@Param("list") List<GoldAccounting> list);

    Integer updateFail(@Param("list") List<GoldAccounting> list);

    Long sumBalance(@Param("roleId") long roleId);
}
